<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>班次名称：</div>
			<div class="col-sm-8 col-md-8 form-input"
				 ng-class="{ 'has-error' : editForm.swName.$dirty && editForm.swName.$invalid}">
			 	<input name="swName" 
			 		class="form-control" 
			 		ng-model="editModel.schedulWeek.swName" 
			 		maxLength="100"
			 		required>
			</div>
		</div>
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
			<!-- <table class="table table-striped  table-bordered table-hover"> -->
			<table class="table table-striped table-bordered tablemb" cellspacing="0" width="100%">
				<thead>
					<tr>
						<th>周天</th>
						<th>周一</th>
						<th>周二</th>
						<th>周三</th>
						<th>周四</th>
						<th>周五</th>
						<th>周六</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>
							<input type="checkbox" 
							      ng-checked="editModel.chkChecked(editModel.schedulWeek.swSunday)"
							      ng-click="editModel.isWeekCheckbox(7)"
							      ng-disabled="editModel.disabled(editModel.schedulWeek)">
						</td>
						<td>
							<input type="checkbox" 
							  	  ng-checked="editModel.chkChecked(editModel.schedulWeek.swMonday)"
							  	  ng-click="editModel.isWeekCheckbox(1)"
							  	  ng-disabled="editModel.disabled(editModel.schedulWeek)">
						</td>
						<td>
							<input type="checkbox" 
							      ng-checked="editModel.chkChecked(editModel.schedulWeek.swTuesday)" 
							      ng-click="editModel.isWeekCheckbox(2)"
							      ng-disabled="editModel.disabled(editModel.schedulWeek)">
						</td>
						<td>
							<input type="checkbox" 
							      ng-checked="editModel.chkChecked(editModel.schedulWeek.swWednesday)"
							      ng-click="editModel.isWeekCheckbox(3)"
							      ng-disabled="editModel.disabled(editModel.schedulWeek)">
						</td>
						<td>
							<input type="checkbox" 
							      ng-checked="editModel.chkChecked(editModel.schedulWeek.swThursday)"
							      ng-click="editModel.isWeekCheckbox(4)"
							      ng-disabled="editModel.disabled(editModel.schedulWeek)">
						</td>
						<td>
							<input type="checkbox" 
							      ng-checked="editModel.chkChecked(editModel.schedulWeek.swFriday)"
							      ng-click="editModel.isWeekCheckbox(5)"
							      ng-disabled="editModel.disabled(editModel.schedulWeek)">
						</td>
						<td>
							<input type="checkbox" 
							      ng-checked="editModel.chkChecked(editModel.schedulWeek.swSaturday)"
							      ng-click="editModel.isWeekCheckbox(6)"
							      ng-disabled="editModel.disabled(editModel.schedulWeek)">
						</td>
					</tr>
				</tbody> 
			</table>
		</div>		
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==2">
			<div class="col-sm-3 col-md-3 form-title">
				    <span>年</span>：
			</div>
            <div class="col-sm-2 col-md-2 form-input">
           	 	<select name="holidayYear" 
					   ng-model="editModel.year" 
					   class="form-control ng-pristine ng-valid"
					   ng-disabled="editModel.disabled(editModel.schedulWeek)">
				       <option ng-repeat="year in viewModel.yearData" value="{{year}}" ng-selected="editModel.year==year">{{year}}</option>
				</select>
            </div>
		</div>
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==2">
			<div class="col-sm-3 col-md-3 form-title">
					<span>月</span>：
			</div>
            <div class="col-sm-2 col-md-2 form-input">
           	 	<select id="month" 
           	 		class="form-control ng-pristine ng-valid" 
           	 		ng-model="editModel.month" 
           	 		ng-change="viewModel.select()"
           	 		ng-disabled="editModel.disabled(editModel.schedulWeek)">
			 	   <option value="01">01</option>
			 	   <option value="02">02</option>
			 	   <option value="03">03</option>
			 	   <option value="04">04</option>
			 	   <option value="05">05</option>
			 	   <option value="06">06</option>
			 	   <option value="07">07</option>
			 	   <option value="08">08</option>
			 	   <option value="09">09</option>
			 	   <option value="10">10</option>
			 	   <option value="11">11</option>
			 	   <option value="12">12</option>
			 	</select>
            </div>
		</div>
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==2">
			<div class="col-sm-3 col-md-3 form-title">
					<span>打卡时间类型</span>：
			</div>
            <div class="col-sm-2 col-md-2 form-input">
           	 	<select class="form-control ng-pristine ng-valid" 
           	 			ng-model="editModel.operationType"
           	 			ng-change="editModel.operationSelect()"
           	 			ng-disabled="editModel.disabled(editModel.schedulWeek)">
			 	   <option value="1">相同打卡时间</option>
			 	   <option value="2">不同打卡时间</option>
			 	</select>
            </div>
		</div>
		<div class="col-md-12 form-item" style="overflow-x:auto;" ng-show="editModel.schedulWeek.swType==2">
			<table class="table table-striped table-bordered" cellspacing="0" width="100%">
				<thead>
					<tr>
						<th ng-repeat="weeks in editModel.weeksList">
						<button type="button" class="btn btn-success btn-sm"
							ng-show="editModel.operationType==2"
							ng-hide="editModel.operationType==1"
							ng-click="editModel.operationClick(weeks.weeksNumber)"
							disabled="disabled"
							ng-disabled="editModel.operationDisabled(weeks.weeksNumber)">
							{{editModel.operationName(weeks.weeksNumber)}}
							</button><br>
						{{weeks.weeksName}}<br>{{weeks.weeksNumber}}</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>
							<input type="checkbox"
								ng-model="editModel.day01"
								ng-checked="editModel.isCheckbox('01')"
								ng-disabled="editModel.monthDisabled('01')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day02"
								ng-checked="editModel.isCheckbox('02')"
								ng-disabled="editModel.monthDisabled('02')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day03"
								ng-checked="editModel.isCheckbox('03')"
								ng-disabled="editModel.monthDisabled('03')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day04"
								ng-checked="editModel.isCheckbox('04')"
								ng-disabled="editModel.monthDisabled('04')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day05"
								ng-checked="editModel.isCheckbox('05')"
								ng-disabled="editModel.monthDisabled('05')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day06"
								ng-checked="editModel.isCheckbox('06')"
								ng-disabled="editModel.monthDisabled('06')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day07"
								ng-checked="editModel.isCheckbox('07')"
								ng-disabled="editModel.monthDisabled('07')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day08"
								ng-checked="editModel.isCheckbox('08')"
								ng-disabled="editModel.monthDisabled('08')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day09"
								ng-checked="editModel.isCheckbox('09')"
								ng-disabled="editModel.monthDisabled('09')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day10"
								ng-checked="editModel.isCheckbox('10')"
								ng-disabled="editModel.monthDisabled('10')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day11"
								ng-checked="editModel.isCheckbox('11')"
								ng-disabled="editModel.monthDisabled('11')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day12"
								ng-checked="editModel.isCheckbox('12')"
								ng-disabled="editModel.monthDisabled('12')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day13"
								ng-checked="editModel.isCheckbox('13')"
								ng-disabled="editModel.monthDisabled('13')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day14"
								ng-checked="editModel.isCheckbox('14')"
								ng-disabled="editModel.monthDisabled('14')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day15"
								ng-checked="editModel.isCheckbox('15')"
								ng-disabled="editModel.monthDisabled('15')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day16"
								ng-checked="editModel.isCheckbox('16')"
								ng-disabled="editModel.monthDisabled('16')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day17"
								ng-checked="editModel.isCheckbox('17')"
								ng-disabled="editModel.monthDisabled('17')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day18"
								ng-checked="editModel.isCheckbox('18')"
								ng-disabled="editModel.monthDisabled('18')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day19"
								ng-checked="editModel.isCheckbox('19')"
								ng-disabled="editModel.monthDisabled('19')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day20"
								ng-checked="editModel.isCheckbox('20')"
								ng-disabled="editModel.monthDisabled('20')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day21"
								ng-checked="editModel.isCheckbox('21')"
								ng-disabled="editModel.monthDisabled('21')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day22"
								ng-checked="editModel.isCheckbox('22')"
								ng-disabled="editModel.monthDisabled('22')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day23"
								ng-checked="editModel.isCheckbox('23')"
								ng-disabled="editModel.monthDisabled('23')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day24"
								ng-checked="editModel.isCheckbox('24')"
								ng-disabled="editModel.monthDisabled('24')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day25"
								ng-checked="editModel.isCheckbox('25')"
								ng-disabled="editModel.monthDisabled('25')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day26"
								ng-checked="editModel.isCheckbox('26')"
								ng-disabled="editModel.monthDisabled('26')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day27"
								ng-checked="editModel.isCheckbox('27')"
								ng-disabled="editModel.monthDisabled('27')">
						</td>
						<td>
							<input type="checkbox"
								ng-model="editModel.day28"
								ng-checked="editModel.isCheckbox('28')"
								ng-disabled="editModel.monthDisabled('28')">
						</td>
						<td>
							<input type="checkbox" 
								ng-model="editModel.day29"
								ng-checked="editModel.isCheckbox('29')"
								ng-disabled="editModel.monthDisabled('29')">
						</td>
						<td>
							<input type="checkbox" 
								ng-model="editModel.day30"
								ng-checked="editModel.isCheckbox('30')"
								ng-disabled="editModel.monthDisabled('30')">
						</td>
						<td>
							<input type="checkbox" 
								ng-model="editModel.day31"
								ng-checked="editModel.isCheckbox('31')"
								ng-disabled="editModel.monthDisabled('31')">
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">
				 设置人员：
			</div>
            <div class="col-sm-8 col-md-8 form-input">
           	 	<button type="button" class="btn btn-success" ng-click="viewEmployeeModel.load()">选择人员</button>
           	 	（{{editModel.schedulWeek.employeeIdList.length}}）人
            </div>
		</div>
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始日期：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.fromDate.$dirty && editForm.fromDate.$invalid}">
			  	<div class="input-group">
					<input name="fromDate" 
						   ng-model="editModel.schedulWeek.fromDate" 
						   class="form-control datetime-picker" 
						   type="text" 
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="viewModel.fromDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       ng-disabled="editModel.disabled(editModel.schedulWeek)"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="viewModel.fromDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
			</div>	
		</div>
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束日期：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.thruDate.$dirty && editForm.thruDate.$invalid}">
			  	<div class="input-group">
					<input name="thruDate" 
						   ng-model="editModel.schedulWeek.thruDate" 
						   class="form-control datetime-picker" 
						   type="text" 
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="viewModel.thruDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="viewModel.thruDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
			</div>	
		</div>
		<div class="col-md-12 form-item"
			ng-show="editModel.schedulWeek.swType==1"
			ng-hide="editModel.schedulWeek.swType==2">
			<div class="col-sm-3 col-md-3 form-title">
				考勤时间设置：
			</div>
            <div class="col-sm-8 col-md-8 form-input">
           	 	<button type="button" class="btn btn-success" ng-click="viewPunchTimeModel.load()" ng-disabled="editModel.schedulWeek.isDefault==1">选择考勤时间</button>
            </div>
		</div>
		<div class="col-md-12 form-item"
			ng-show="editModel.schedulWeek.swType==2 && editModel.operationType==1"
			ng-hide="editModel.schedulWeek.swType==1">
			<div class="col-sm-3 col-md-3 form-title">
				考勤时间设置：
			</div>
            <div class="col-sm-8 col-md-8 form-input">
           	 	<button type="button" class="btn btn-success" ng-click="viewPunchTimeModel.load()" ng-disabled="editModel.schedulWeek.isDefault==1">选择考勤时间</button>
            </div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title">
			</div>
            <div class="col-sm-8 col-md-8 form-span">
            	<span ng-if="editModel.schedulWeek.startFromTime!=null">
            	早上({{editModel.schedulWeek.startFromTime}}-{{editModel.schedulWeek.startToTime}} 间隔：{{editModel.schedulWeek.startInterval}})
				晚上({{editModel.schedulWeek.endFromTime}}-{{editModel.schedulWeek.endToTime}} 间隔：{{editModel.schedulWeek.endInterval}})
            	</span>
            </div>
		</div>
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
			<div class="col-sm-3 col-md-3 form-title">
				法定节假日设置：
			</div>
            <div class="col-sm-8 col-md-8 form-input">
          		 是否根据法定节假日放假安排自动调整班次
           	 	<select class="form-control" ng-model="editModel.schedulWeek.isHoliday" ng-disabled="editModel.schedulWeek.isDefault==1">
					<option value="1">是</option>
					<option value="0">否</option>
				</select>
            </div>
		</div>
		<div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
			<div class="col-sm-3 col-md-3 form-title">
			</div>
            <div class="col-sm-8 col-md-8 form-input">
           	 	<button type="button" class="btn btn-warning" ng-click="viewHolidayModel.load()">查看法定节假日</button>
            </div>
		</div>
		<!-- <div class="col-md-12 form-item" ng-show="editModel.schedulWeek.swType==1">
			<div class="col-sm-3 col-md-3 form-title">
				默认状态：
			</div>
            <div class="col-sm-8 col-md-8 form-input">
           	 	<select class="form-control" ng-model="editModel.schedulWeek.isDefault">
					<option value="1" >是</option>
					<option value="0" >否</option>
				</select>
            </div>
		</div> -->
	</div>	
</form>
